<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()
function tologin() {
    router.push('/login')
}
</script>
<template>
    <main>
        <van-nav-bar @click-left="tologin">
            <template #left>
                <van-icon name="arrow-left" color="white" />
            </template>
            <template #title>
                <span class="title">设置密码</span>
            </template>
        </van-nav-bar>
        <router-view></router-view>
    </main>
</template>

<style lang="scss" scoped>
main {
    font-size: 12px;
    height: 100%;
    position: relative;
    background-color: #f2f2f2;
    padding-top: 0;

    .van-nav-bar {
        background-color: #1678ff;

        .title {
            color: white;
        }
    }
}
</style>